export const state = () => ({
  position: {
    province: '',
    city: '成都市'
  },
  hotCity: []
})
export const mutations = {
  setPosition(state,val) {
    state.position = val
  },
  sethotCity(state,val) {
    state.hotCity = val
  }
}
export const actions = {
  sethotCity({commit}, hotCity) {
    commit('sethotCity',hotCity)
  },
  setPosition({commit}, position) {
    commit('setPosition',position)
  }
}
